From 86234f86b5c644686c03aaceccdf78f089cb9f77 Mon Sep 17 00:00:00 2001 From: "emellor@leeni.uk.xensource.com" Date: Sat, 15 Oct 2005 12:55:03 +0100 Subject: [PATCH] Fix installation decision to make the DISTDIR and DESTDIR absolute before comparing them. Signed-off-by: Ewan Mellor --- tools/examples/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/examples/Makefile b/tools/examples/Makefile index 83a9f7c101..f94a222466 100644 --- a/tools/examples/Makefile +++ b/tools/examples/Makefile @@ -32,7 +32,9 @@ XEN_HOTPLUG_SCRIPTS = xen-backend.agent UDEV_RULES_DIR = /etc/udev/rules.d UDEV_RULES = xen-backend.rules -ifeq ($(findstring $(DISTDIR),$(DESTDIR)),$(DISTDIR)) +DI = $(shell readlink -f $(DISTDIR)) +DE = $(shell readlink -f $(DESTDIR)) +ifeq ($(findstring $(DI),$(DE)),$(DI)) HOTPLUGS=install-hotplug install-udev else ifeq ($(shell [ -x /sbin/udev ] && [ ! -z `udev -V` ] && [ `/sbin/udev -V` -ge 059 ] && echo 1),1) -- 2.30.2